﻿using System.Web;
using System.Web.Mvc;
using Wicresoft.EKA.MVCExtensions;
using Wicresoft.EKA.ITSM.Business;
using Wicresoft.EKA.ITSM.BusinessImpl;

namespace Wicresoft.EKA.ITSM.Web.WebPortal
{
    public class IoCConfig
    {
        public static void Register()
        {
            IoCRegister.MVCResigster(new NInjectControllerFactory());
            IoCRegister.WebApiRegister(new NInjectHttpControllerActivator());

            IoCRegister.Register<IUserInfo, UserInfo>();
            IoCRegister.Register<ICTMPeople, CTMPeople>();
            IoCRegister.Register<IUser, User>();
            IoCRegister.Register<ISMGXJPlanRule, SMGXJPlanRule>();
            IoCRegister.Register<ISMGXJPlanObject, SMGXJPlanObject>();
            IoCRegister.Register<ISMGXJPlanTicket, SMGXJPlanTicket>();
            IoCRegister.Register<ISMGXJPlanTicketRuleRelated, SMGXJPlanTicketRuleRelated>();
            IoCRegister.Register<ISMGXJPlanTask, SMGXJPlanTask>();
            IoCRegister.Register<ISMGXJPlanTaskFrame, SMGXJPlanTaskFrame>();
            IoCRegister.Register<ISMGXJPlanObjectTemplate, SMGXJPlanObjectTemplate>();
            IoCRegister.Register<ISMGXJGroupAsso, SMGXJGroupAsso>();
        }
    }
}